package com.syni.mdd.yhd.common.all.service.user.impl;

import com.syni.mdd.yhd.common.all.constants.Constants;
import com.syni.mdd.yhd.common.all.dao.BaseJPADao;
import com.syni.mdd.yhd.common.all.dao.jpa.user.BmsCustomerDao;
import com.syni.mdd.yhd.common.all.entity.BmsBusinessGroupMessage;
import com.syni.mdd.yhd.common.all.entity.user.BmsCustomer;
import com.syni.mdd.yhd.common.all.service.impl.BaseService;
import com.syni.mdd.yhd.common.all.service.user.BmsCustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @className BmsUserOperationLogService
 * @description TOO
 * @Author cfx
 * @DATE 2019/4/9 12:04
 * @VERSION 1.0
 **/
@Service
public class BmsCustomerServiceImpl extends BaseService<BmsCustomer, Integer> implements BmsCustomerService {
    @Autowired
    BmsCustomerDao bmsCustomerDao;

    @Override
    public BmsCustomerDao getBaseDao() {
        return bmsCustomerDao;
    }

    @Override
    public List<BmsCustomer> getOnlineCoustomer() {
        return bmsCustomerDao.findByIsUse(Constants.COMMON_FLAG_TRUE_INT);
    }
}
